import * as types from '@/store/mutation-types';

export default {

  [types.SET_USER_INFO](state, payload) {
    state.user = payload.user;
  },

  [types.SHOW_REGIST](state) {
    state.isShow = true;
  },
  [types.HIDE_REGIST](state) {
    state.isShow = false;
  },

  //* 清除vuex的用户信息
  [types.CLEAR_USER_INFO](state) {
    state.user = {};
  },

};
